/*******************************************************
 * Include Class for the ID3D10Include Interface
 *******************************************************
 * (C) 2010 D.Teeder
 *******************************************************/

#pragma once

namespace d3d11
{
	class Include : public ID3D10Include
	{
	public:
		STDMETHOD(Open) (D3D10_INCLUDE_TYPE IncludeType, LPCSTR pFileName, LPCVOID pParentData, LPCVOID *ppData, UINT *pBytes);
		STDMETHOD(Close) (LPCVOID pData);

	private:
		byte *m_pBuffer;
		unsigned int getFileSize(FILE *fp);
	};
}